package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Description NursingProjectMapper
 * @Author wangxinyi
 * @Date 2024-10-15
 */
@Mapper
public interface NursingProjectMapper {
    /**
     * 分页查询
     * @param name
     * @param status
     * @return
     */
    Page<NursingProjectVo> getByPage(String name, Integer status);

    /**
     * 新增护理项目
     * @param nursingProject
     */
    void add(NursingProject nursingProject);

    /**
     * 根据id查询护理项目
     * @param id
     * @return
     */
    @Select("select * from nursing_project where id = #{id}")
    NursingProjectVo selectById(Long id);


    void update(NursingProject nursingProject);
}
